From: LLVM Packaging Team Date: Thu, 7 Sep 2023 22:43:45 +0000 (+0200) Subject: mips-assert-size X-Git-Tag: archive/raspbian/1%15.0.7-10+rpi1~1^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=db942b939c3127e9659cc14f45400cf9045277f1;p=llvm-toolchain-15.git mips-assert-size =================================================================== Gbp-Pq: Topic mips Gbp-Pq: Name mips-assert-size.diff --- diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp index bf0f355847..4e40762cff 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_linux.cpp @@ -64,9 +64,12 @@ using namespace __sanitizer; COMPILER_CHECK(struct___old_kernel_stat_sz == sizeof(struct __old_kernel_stat)); #endif -COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); +# if defined(__LP64__) || \ + (!defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS != 64) + COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); +# endif -#if defined(__i386__) +# if defined(__i386__) COMPILER_CHECK(struct_kernel_stat64_sz == sizeof(struct stat64)); #endif